{include file="common/header.tpl"}    
    <div id="vfriendContainer">
        <div id="mainContent3C">
            <div class="vfriendContainer3C">
                <div class="vfriendContent3C">
                	<div class="leftCol">
                    	{vfriend_navi id=$objUser->id}
                    </div>
                    <div class="rightCol noBg">    
                    	{vfriend_userinfo id=$objUser->id view=$AppUI->id} 
                        {if $arrCloseFriend}
                        	<div class="boxRelation">
                                <div class="headerTitle">
                                	<h3>Bạn thân</h3>
                               	</div>
                                <div class="relationItem">
                                    <ul>
                                    	{foreach key=i item=item from=$arrCloseFriend}
                                        <li{if $i%5==0} class="firstChild"{/if}>
                                            {image userid=$item.userid viewid=$AppUI->id type=1 small=1 class="border100 lFloat"}
                                            <span class="user"><a href="{vfriend_username userid=$item.userid viewid=$AppUI->id}">{$item.userid|ouser}</a></span>
                                        </li>
                                        {/foreach}
                                    </ul>
                                </div>
                            </div>
                        {/if}
                        {if $arrResult}               	
                            <div class="boxRelation">
                                <div class="headerTitle">
                                	<h3>Bạn bè{if $AppUI->id > 0 && $AppUI->id == $objUser->id}({$intTotal}){/if}</h3>
                                    <div class="frmSort">
                                        <form name="frmFilter" id="frmFilter" method="get" enctype="multipart/form-data" action="">
                                        	<input type="hidden" name="page" id="page" value="{$intPage}" />
                                            <div class="userInput">
                                                <label for="sort">Hiển thị theo:</label>
                                                <div>
                                                    <select name="sort" id="sort" class="select" onchange="javascript:loadSort({$objUser->id},this.value);">                                                		{html_options options=$arrSort selected=$intSort}
                                                    </select>
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                               	</div>
                                <div class="relationItem">
                                    <ul id="relationOfFriend">
                                    	{include file="fullhouse/box-friend-item.tpl"}
                                    </ul>
                                    {if $intTotal > 0 && $intPage && $intOffset < $intTotal - $intLimit}
                                    	<a href="javascript:;" class="loadMore" onclick="javascript:loadMore({$objUser->hex});">
                                        	<img src="{$smarty.const.HOST_STATICS}img/btn/load-more.gif" alt="Xem thêm bạn bè" border="0" width="253" height="47" />
                                        </a>
                                    {/if}
                                </div>
                            </div> 
                        {/if}  
                        {if !$arrCloseFriend && !$arrResult}                 	
                        	<div class="notContent">Hiện tại, {$objUser->fullnamevn} không có danh sách bạn bè.</div>
                        {/if}
                    </div>
               	</div>
            </div>
        </div>
    </div>
{include file="common/footer.tpl"}